package com.tx.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import com.tx.pojo.Employee;

public interface EmployeeDAO {
	public Employee selectEmpById(int id);
	
	public Employee selectEmpByIdAndLastName(Map<String,Object> map); 

	// public Employee selectEmpByIdAndLastName(Map<String,Object> map);
	 
	
	public void deleteEmp(int id);
	
	public void updateEmp(Employee emp);
	
	public void insertEmp(Employee emp);	
	
//	public List<Employee> selectAllEmp();
	@MapKey("id")  
	public Map<String,Employee> selectAllEmp2();
	
	public Employee selecttest(@Param("id")int id,@Param("lastName")String lastName);
	
	public List<Employee> selectempsById(List<Integer> list);


}
